<?php
$this->menu=array(
	array('label'=>'List Volunteers', 'url'=>array('index'),'icon'=>"icon-chevron-right"),
	array('label'=>'Create Volunteer', 'url'=>array('create'),'icon'=>"icon-chevron-right"),
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#alumni-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<?php $box = $this->beginWidget('bootstrap.widgets.TbBox', array(
	'title' => 'Manage Volunteers',
	'headerIcon' => 'icon-th-list',
	'htmlOptions' => array('class'=>'bootstrap-widget-table')
));?>

<?php $this->widget('bootstrap.widgets.TbExtendedGridview', array(
'type'=>'striped bordered condensed',
'dataProvider'=>$model->search(),
'template'=>"{items}\n{extendedSummary}\n{pager}",
'filter'=>$model,
'columns'=>array(
		'volunteer_code',
			array(
					'header'=>'Volunteer Name',
					'name'=>'volunter_people_id',
					'filter'=> CHtml::listData(People::model()->findAll( array('order'=>'people_lname ASC')), 'people_id','volunteerName'),
					'value'=>'$data->volunterPeople->volunteerName',
					), 	
		'volunterPeople.people_mobile',
		'volunterPeople.people_type',
array(
'class'=>'bootstrap.widgets.TbButtonColumn',
),
),
)); ?>
<?php $this->endWidget();?>
</br>


